#ifndef ORACLEADAPTER_H
#define ORACLEADAPTER_H

#import "msado15.dll" rename_namespace("ADODB") rename("EOF", "ADOEOF")  

#include "Thread.h"
#include "Types.h"
#include "DatabaseAdapter.h"

class SQLServerAdapter : public DatabaseAdapter
{
public:
  SQLServerAdapter();
  SQLServerAdapter(E_SUBJECT subj);
  virtual ~SQLServerAdapter();

  void onMessage(infobus::types::Message * m);
  void run();
  void dispatch(const char * msg);
  
  void setStatus(E_STATUS stat, infobus::types::Message * pMsg); 
  const char* getCurrTime();
  virtual void execute(const char* pszSql);
  ADODB::_ConnectionPtr getConnecion() { cn.AddRef(); return cn; }

protected:
  void initConnection();
  ADODB::_ConnectionPtr cn;  
private:
  char * m_pszTemp;
};









#endif
